<template lang="pug">
.c-channel-bbb-settings
	bunt-checkbox(name="record", v-model="module.config.record", label="Allow recording (needs to be set before first join)")
	bunt-checkbox(name="hide-presentation", v-model="module.config.hide_presentation", label="Hide presentation when users join")
	bunt-checkbox(name="waiting-room", v-model="module.config.waiting_room", label="Put new users in waiting room first (needs to be set before first join)")
	bunt-checkbox(name="auto-microphone", v-model="module.config.auto_microphone", label="Auto-join users with microphone on (skip dialog asking how to join)")
	bunt-checkbox(name="auto-camera", v-model="module.config.auto_camera", label="Auto-join users with camera on")
	bunt-checkbox(name="bbb-mute-on-start", v-model="module.config.bbb_mute_on_start", label="Auto-mute users")
	bunt-checkbox(name="bbb-disable-cam", v-model="module.config.bbb_disable_cam", label="Disable camera for non-moderators")
	bunt-checkbox(name="bbb-disable-chat", v-model="module.config.bbb_disable_chat", label="Disable public chat for non-moderators")
	bunt-input(name="voice-bridge", v-model="module.config.voice_bridge", label="Voice Bridge ID")
	bunt-input(name="prefer-server", v-model="module.config.prefer_server", label="Prefer Server with ID")
	upload-url-input(name="presentation", v-model="module.config.presentation", label="Initial presentation")
	sidebar-addons(v-bind="$props")
</template>
<script>
import UploadUrlInput from 'components/UploadUrlInput'
import mixin from './mixin'
import SidebarAddons from './SidebarAddons'

export default {
	components: { UploadUrlInput, SidebarAddons },
	mixins: [mixin],
	computed: {
		module() {
			return this.modules['call.bigbluebutton']
		}
	}
}
</script>
<style lang="stylus">
</style>
